import request from '@/utils/request'

// 创建安全会议
export function createSafeMetting(data) {
  return request({
    url: '/biz/safe-metting/create',
    method: 'post',
    data: data
  })
}

// 更新安全会议
export function updateSafeMetting(data) {
  return request({
    url: '/biz/safe-metting/update',
    method: 'put',
    data: data
  })
}

// 删除安全会议
export function deleteSafeMetting(id) {
  return request({
    url: '/biz/safe-metting/delete?id=' + id,
    method: 'delete'
  })
}

// 获得安全会议
export function getSafeMetting(id) {
  return request({
    url: '/biz/safe-metting/get?id=' + id,
    method: 'get'
  })
}

// 获得安全会议分页
export function getSafeMettingPage(query) {
  return request({
    url: '/biz/safe-metting/page',
    method: 'get',
    params: query
  })
}

// 导出安全会议 Excel
export function exportSafeMettingExcel(query) {
  return request({
    url: '/biz/safe-metting/export-excel',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}
